package com.example.lib;

public class MyClass {
    public  static void main(String[] args){
            Duck duck = new ReadHeadDuck();
            duck.display();
            duck.performQuack();
            duck.performFly();
            duck.setFlyBehavior(new FlyBehavior() {
                @Override
                public void fly() {

                }
            });
            duck.performFly();

    }
}
